USE [Yacht Rental]
GO

/****** Object:  Table [dbo].[SpecialOffer]    Script Date: 10/17/2017 1:53:38 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[SpecialOffer](
	[SpecialOfferID] [int] NOT NULL,
	[id_os] [int] NULL,
	[id_boat] [int] NULL,
	[discount] [int] NULL,
	[old_price] [int] NULL,
	[new_price] [int] NULL,
	[start_id_base] [int] NULL,
	[end_id_base] [int] NULL,
	[datestart] [date] NULL,
	[deptime] [time](7) NULL,
	[dateend] [date] NULL,
	[arrtime] [time](7) NULL,
	[createdate] [datetime] NULL,
	[updatedate] [datetime] NULL,
	[rowstaus] [bit] NULL,
 CONSTRAINT [PK_SpecialOffer] PRIMARY KEY CLUSTERED 
(
	[SpecialOfferID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[SpecialOffer] ADD  CONSTRAINT [DF_SpecialOffer_rowstaus]  DEFAULT ((1)) FOR [rowstaus]
GO


